<template>
    <div class="tab-container">
        <el-tabs style='margin-top:15px;' v-model="activeName">
            <el-tab-pane :label="$t('callRecord.NotDialed')" name="first">
                <not-dialed v-if="activeName === 'first'"></not-dialed>
            </el-tab-pane>
            <el-tab-pane :label="$t('callRecord.DialRecord')" name="second">
                <dial-record v-if="activeName === 'second'"></dial-record>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>
    export default {
      data() {
        return {
          activeName: 'first'
        }
      },
      components: {
        'not-dialed': () => import('./components/NotDialed'),
        'dial-record': () => import('./components/DialRecord')
      }
    }
</script>

<style scoped>
.tab-container {
  margin: 30px 15px;
}
</style>